package com.mryunqi.wentianbot.plugins;

import com.mikuac.shiro.core.Bot;
import com.mikuac.shiro.core.BotPlugin;
import com.mikuac.shiro.dto.event.message.GroupMessageEvent;
import com.mikuac.shiro.dto.event.message.GuildMessageEvent;
import org.jetbrains.annotations.NotNull;
import org.springframework.stereotype.Component;

import java.util.HashMap;

/**
 * @author mryunqi
 * @date 2023/6/8
 */

@Component
public class Demo extends BotPlugin {

    @Override
    public int onGuildMessage(@NotNull Bot bot, @NotNull GuildMessageEvent event) {
        String msg = event.getMessage();
        String userId = String.valueOf(event.getUserId());
        String guildId = event.getGuildId();
        String channelId = event.getChannelId();
        return MESSAGE_IGNORE;
    }
}
